/*loading function ajax*/
$(document).ready(function(){

function ajax_info() {     
$.ajax({         
url:       "pm.cgi",         
cache:     false,         
dataType:  "text",         
data:      { mode: 'info' },         
success:   function(result) { 
ajax_info_result(result); }     
}); 
return result;
}   

/*load and change resultat */
function ajax_info_result(result) {     
var text   = "The server says: <b>" + result + "</b>";     
$('#info').html(text); } 

});




